<div style="background: white">
    <table style="width: 100%; border-collapse: collapse; background: #232323; color: white;">
        <tr>
            <td style="padding: 5px; text-align: center">Servisný pracovník: <b>{$data.user.name} {$data.user.surname}</b></td>
            <td style="padding: 5px; text-align: center">Obdobie: <b>{$data.period}</b></td>
            <td style="padding: 5px; text-align: center"><a style="color: white; text-decoration: none" href="javascript: void(0)" onclick="hideRentabilityOverlay();">[Zavrieť]</a></td>
        </tr>
    </table>

    <table style="width: 100%; border-collapse: collapse; margin-top: 20px;">

        <tr>
            <td style="padding: 5px; text-align: left; background: #dcdcdc;"><b>Úloha</b></td>
            <td style="padding: 5px; text-align: center; background: #dcdcdc"><b>1. zložka</b></td>
            <td style="padding: 5px; text-align: center; background: #dcdcdc"><b>2. zložka</b></td>
            <td style="padding: 5px; text-align: center; background: #dcdcdc"><b>3. zložka</b></td>
            <td style="padding: 5px; text-align: center; background: #dcdcdc"><b>Súčet</b></td>
        </tr>
        {foreach $data.tasks as $row}
            <tr>
                <td style="padding: 5px; text-align: left; border-bottom: 1px solid #dcdcdc; border-top: 1px solid #dcdcdc;">{$row.title}</td>
                <td style="padding: 5px; text-align: center; border-bottom: 1px solid #dcdcdc; border-top: 1px solid #dcdcdc; ">{$row.z1|round:"2"}</td>
                <td style="padding: 5px; text-align: center; border-bottom: 1px solid #dcdcdc; border-top: 1px solid #dcdcdc; ">{$row.z2|round:"2"}</td>
                <td style="padding: 5px; text-align: center; border-bottom: 1px solid #dcdcdc; border-top: 1px solid #dcdcdc; ">{$row.z3|round:"2"}</td>
                <td style="padding: 5px; text-align: center; border-bottom: 1px solid #dcdcdc; border-top: 1px solid #dcdcdc; background: #f5f5f5">{$row.expense|round:"2"}</td>
            </tr>
        {/foreach}
        <tr>
            <td style="padding: 5px; text-align: left; background: #dcdcdc"><b>Súčet</b></td>
            <td style="padding: 5px; text-align: center; background: #dcdcdc"><b>{$data.sum_z1|round:"2"}</b></td>
            <td style="padding: 5px; text-align: center; background: #dcdcdc"><b>{$data.sum_z2|round:"2"}</b></td>
            <td style="padding: 5px; text-align: center; background: #dcdcdc"><b>{$data.sum_z3|round:"2"}</b></td>
            <td style="padding: 5px; text-align: center; background: #cdcdcd"><b>{$data.sum|round:"2"}</b></td>
        </tr>

    </table>


</div>